import request from "../../utils/request.js";

// 获取可领用优惠券
export function couponList() {
	return request({
		url: `/bar/couponConfig/list`,
		method: 'get'
	})
}

// 领取优惠券
export function receive(data) {
	return request({
		url: `/bar/coupon/receive`,
		method: 'post',
		data
	})
}

// 查询我的优惠券
export function myCouponList() {
	return request({
		url: `/bar/coupon/list`,
		method: 'get'
	})
}